import React, { FC, ReactElement } from 'react';

import {aa} from './typings';
interface aaa {
    list:aa[]
}
const list:FC<aaa> = ({list}):ReactElement => {
    return (
        <ul>
            {
                list&&list.map(r=>(
                    <li key={r.id}>{r.title}</li>
                ))
            }
        </ul>
    );
}

export default list;
